package com.peogoo.mall.product.feign.fallback;

import com.peogoo.common.exception.BizCodeEnum;
import com.peogoo.common.feign.dto.SpuSaveDto;
import com.peogoo.common.utils.R;
import com.peogoo.mall.product.feign.OrderFeignService;
import com.peogoo.mall.product.vo.SpuSaveVo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;


@Component
public class OrderFeignServiceFalback implements OrderFeignService {

	@Override
	public R getSkuInf(SpuSaveVo spuSaveVo) {
		System.out.println("触发熔断");
		return R.error(BizCodeEnum.TO_MANY_REQUEST.getCode(), BizCodeEnum.TO_MANY_REQUEST.getMsg());
	}
}
